import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const Home = () => import('../views/home/home.vue');
const Question = () => import('../views/question.vue');
const Find = () => import('../views/find.vue');

export default () => {
	return new Router({
		mode: 'history',
		routes: [
			{ name: 'home', path: '/home', component: Home },
			{ name: 'question', path: '/question', component: Question },
			{ name: 'find', path: '/find', component: Find },
			{ path: '/', redirect: '/home' }
		]
	});
};
